﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BabyFood.Entities;
using BabyFood.Data;

public partial class Controls_ControlADS4 : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            HienThiTinTucdlQC3();
        }
    }

    private void HienThiTinTucdlQC3()
    {
        int TotalRows = 0;
        TList<QuangCao> TList_QuangCao = DataRepository.QuangCaoProvider.GetPaged("IdNhomQuangCao = " + 4, "Id ASC", 0, 3, out TotalRows);
        dlQuangCao4.DataSource = TList_QuangCao;
        dlQuangCao4.DataBind();
    }
}